//
//  SplashScreen.m
//  Gekko
//
//  Created by jose on 02/06/13.
//  Copyright (c) 2013 Jose Luis Lopez. All rights reserved.
//

#import "SplashScreen.h"

@interface SplashScreen ()

@end

@implementation SplashScreen

@synthesize  splashImage;

- (void)viewDidLoad
{
    [super viewDidLoad];
}

- (void)viewDidAppear:(BOOL)animated {

    if ([[UIScreen mainScreen] bounds].size.height > 480) 
        [splashImage setImage:[UIImage imageNamed:@"Default-568h"]];
    else
        [splashImage setImage:[UIImage imageNamed:@"Default"]];

    [self performSelector:@selector(segueWithDelay) withObject:nil afterDelay:0];
}

-(void)segueWithDelay {
    
    [self performSegueWithIdentifier:@"SegueToTab" sender:self];
}

@end
